# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=perl-net-imap-simple
pkgver=1.2212
pkgrel=1
pkgdesc="Net::IMAP::Simple - a simple IMAP access library"
arch=(any)
license=('GPL' 'PerlArtistic')
url="https://search.cpan.org/dist/Net-IMAP-Simple/"
depends=('perl>=5.10.0')
options=(!emptydirs)
source=(https://search.cpan.org/CPAN/authors/id/J/JE/JETTERO/Net-IMAP-Simple-${pkgver}.tar.gz)
sha256sums=('9812cd0aa3be333768b6069e8b13a761fcd9fe42dc6b8b5a5ea1870dac5b7f55')

build() {
  cd "$srcdir"/Net-IMAP-Simple-${pkgver}
  yes n | perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/Net-IMAP-Simple-${pkgver}
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name perllocal.pod -delete
  find "$pkgdir" -name .packlist -delete
}
